package org.shiro.service;

import java.util.List;

/**
 * @author HKC
 */
public interface RolePermissionService {
    /**
     * role-permission批量插入权限Id
     * @param roleId
     * @param permissionIds
     * @return
     */
    int insertPermission(Long roleId, List<Long> permissionIds);

    /**
     * user-permission批量插入roleId
     * @param roleIds
     * @param permissionId
     * @return
     */
    int insertRole(List<Long> roleIds,Long permissionId);

    int deleteByRoleId(Long roleId);
}
